Translating between address representations

ABSTRACT

Translation of uniform resource locators (URLs). A URL is received, in a computer system and from a computer device, referring to a resource managed by a first application in the computer system, for which resource the computer system uses an internal URL. A first rule set is selected from among multiple rule sets assigned to a respective one of multiple applications, based on the first rule set being assigned to the first application. At least a portion of the URL is matched with a rule in the first rule set identifying an internal URL portion as corresponding to the portion of the URL. The internal URL portion is included in a translated URL, wherein a second rule set identifies another internal URL portion as corresponding to the portion of the URL. At least part of the resource is forwarded to the computing device.

TECHNICAL FIELD

This specification relates to translating an address, such as a UniformResource Locator (URL), from a first representation to a secondrepresentation.

BACKGROUND

A web browser is a software application for retrieving, presenting, andtraversing information resources on the World Wide Web. An informationresource is identified by a URL and may be a web page, image, video, orother piece of content. Hyperlinks present in resources enable users toeasily navigate their browsers to related resources. Aside fromhypertext markup language (HTML), web browsers can generally display anykind of content that can be embedded as part of a web page. Mostbrowsers can display images, audio, video, and XML files, and often haveplug-ins to support embedded applications, such as Flash applications,and Java applets.

SUMMARY

In general, one aspect of the subject matter described in thisspecification can be embodied in methods that include the actions ofreceiving, in a computer system and from a computer device, a uniformresource locator (URL), the URL referring to a resource managed by afirst application of multiple applications in the computer system, forwhich resource the computer system uses an internal URL, selecting afirst rule set of multiple rule sets in the computer system, each of themultiple rule sets assigned to a respective one of the multipleapplications, the selection made based on the first rule set beingassigned to the first application, matching at least a portion of theURL with a rule in the first rule set, the rule identifying an internalURL portion as corresponding to the portion of the URL, including atleast the internal URL portion in a translated URL corresponding to theURL, wherein a second rule set assigned to another one of the multipleapplications and not selected for the URL identifies another internalURL portion as corresponding to the portion of the URL, and forwarding,based on the translated URL matching the internal URL, at least part ofthe resource to the computing device. Other embodiments of this aspectinclude corresponding systems, apparatus, and computer programs,configured to perform the actions of the methods, encoded on computerstorage medium.

These and other embodiments can each optionally include one or more ofthe following features. The one or more aspects can also includedetermining, after receiving the URL and before selecting the first ruleset, that the URL is not an internal URL. Each of the multiple rule setscan also include at least one of a replacement rule causing oneinclusion of the internal URL portion in the translated URLcorresponding to a first matching of the replacement rule with theportion of the URL, a recursive rule causing a number of inclusions ofthe internal URL portion in the translated URL equal to a number ofmatches of the rule with the URL, an exclusive rule causing the internalURL portion not to be included in the translated URL corresponding toany matching of the rule with the portion of the URL, and a stop ruleceasing any further matching after the stop rule is matched with theportion of the URL. At least one framework rule can be assigned to eachof the multiple rule sets, the framework rule matching a parameter withthe portion of the URL for inclusion in the translated URL. Theframework rule can be a language rule identifying a language parameterto be included in the translated URL based on a matching of the languagerule with the portion of the URL. At least one of the multiple rule setscan include a page rule identifying a document identifier to be includedin the translated URL based on a matching of the page rule with theportion of the URL. At least one of the multiple rule sets can include amodule rule identifying an application identifier corresponding to thefirst application to be included in the translated URL based on amatching of the module rule with the portion of the URL. At least one ofthe multiple rule sets can include a parameter rule identifying aparameter to be provided to the first application to be included in thetranslated URL based on a matching of the parameter rule with theportion of the URL.

In general, another aspect the subject matter described in thisspecification can be embodied in methods that include the actions ofaccessing, in a computer system and in response to a request from acomputer device, a first resource that includes at least one internalURL, the internal URL referring to a second resource managed by oneapplication of multiple applications in the computer system, for whichsecond resource the computer system uses the internal URL, selecting afirst rule set of multiple rule sets in the computer system, each of themultiple rule sets assigned to a respective one of the multipleapplications, the selection made based on the first rule set beingassigned to the first application, matching at least a portion of theinternal URL with a rule in the first rule set, the rule identifying aURL portion as corresponding to the portion of the internal URL,including at least the URL portion in the translated URL, wherein asecond rule set assigned to another one of the multiple applications andnot selected for the internal URL identifies another URL portion ascorresponding to the portion of the internal URL, and forwarding, atleast part of the first resource including the translated URL to thecomputing device. Other embodiments of this aspect include correspondingsystems, apparatus, and computer programs, configured to perform theactions of the methods, encoded on computer storage medium.

These and other embodiments can each optionally include one or more ofthe following features. The one or more aspects can also includedetermining, after accessing the first resource and before selecting thefirst rule set, that the internal URL should be translated to a URL.Each of the multiple rule sets can include at least one of a replacementrule causing one inclusion of the URL portion in the translated URLcorresponding to a first matching of the replacement rule with theportion of the internal URL, a recursive rule causing a number ofinclusions of the URL portion in the translated URL equal to a number ofmatches of the rule with the internal URL, an exclusive rule causing theURL portion not to be included in the translated URL corresponding toany matching of the rule with the portion of the internal URL, and astop rule ceasing any further matching after the stop rule is matchedwith the portion of the internal URL. At least one framework rule can beassigned to each of the multiple rule sets, the framework rule matchinga parameter with the portion of the internal URL for inclusion in thetranslated URL. The framework rule can be a language rule identifying alanguage parameter to be included in the translated URL based on amatching of the language rule with the portion of the internal URL. Atleast one of the multiple rule sets can include a page rule identifyinga document identifier to be included in the translated URL based on amatching of the page rule with the portion of the internal URL. At leastone of the multiple rule sets can include a module rule identifying anapplication identifier corresponding to the first application to beincluded in the translated URL based on a matching of the module rulewith the portion of the internal URL. At least one of the multiple rulesets can include a parameter rule identifying a parameter to be providedto the first application to be included in the translated URL based on amatching of the parameter rule with the portion of the internal URL.

In general, another aspect the subject matter described in thisspecification can be embodied in methods that include the actions ofgenerating multiple applications accessible to a computer device using acommunication device, the multiple applications managing resources thatare identified using an internal URL representation, wherein thecomputer device uses an external URL representation for the resources, arule engine including multiple rule sets assigned to respective ones ofthe multiple applications, each of the rule sets including rules thatassociate portions of external URLs with corresponding portions ofinternal URLs for the assigned application, and an address translationmodule configured to receive an untranslated URL, select one of the rulesets for the untranslated URL using the rule engine, generate atranslated URL corresponding to the untranslated URL using the rule set,and process the translated URL in response to receiving the untranslatedURL, wherein at least one of the rule sets includes a first rule thatincludes a different translation of one of an internal URL portion andan external URL portion than a second rule in another of the rule sets.Other embodiments of this aspect include corresponding systems,apparatus, and computer programs, configured to perform the actions ofthe methods, encoded on computer storage medium.

These and other embodiments can each optionally include one or more ofthe following features. At least one rule set of the multiple rule setscan include at least one rule generated by the rule engine in responseto analyzing one or more rules of the rule set. Each rule of themultiple rule sets can specify at least one of a URL translation and anext rule to apply to the untranslated URL.

Particular embodiments of the subject matter described in thisspecification can be implemented to realize one or more of the followingadvantages. Particular embodiments can generate more readable URLswithout requiring the user to use regular expressions; rules can beapplied in a bi-directional manner which reduces the number of rulesthat a user needs to specify; rules provided by the user can be used togenerate additional rules, which further reduces the number of rulesthat a user needs to specify; rules can be applied based on particularapplications that the rules are assigned to, allowing rules to beapplied in an application-specific manner; rules can be appliedaccording to various language specific rules, allowing the translationto occur in any number of languages.

The details of one or more implementations are set forth in theaccompanying drawings and the description below. Other features andadvantages will be apparent from the description and drawings, and fromthe claims.

DESCRIPTION OF DRAWINGS

FIG. 1 shows an example system for translating a URL from an externalURL to an internal URL and from an internal URL to an external URL.

FIG. 2 shows an example technique that can be used to translate a URLinto an internal URL

FIG. 3 shows an example technique that can be used to translate aninternal URL into a URL.

FIGS. 4A-4C show examples of techniques that can be used to apply rulesto URLs according to different orders.

FIG. 5 shows an example of applying a framework rule to a URL.

FIG. 6 is a block diagram of a computing system that can be used inconnection with computer-implemented methods described in this document.

Like reference symbols in the various drawings indicate like elements.

DETAILED DESCRIPTION

FIG. 1 shows an example system 100 for translating a URL from anexternal URL to an internal URL and from an internal URL to an externalURL. In general, an internal URL is a URL that references a particularresource managed by, or otherwise available to, a computer system 102.For example, in some implementations, an internal URL can be

“www.mysite.com/sales_app:shop.xhtml?language=en&category_id=printers&product_id=123”

which specifies a document resource “shop.xhtml” and other resources,including a sales application. Other internal URLs are also possible,such as longer or shorter ones.

In general, an external URL is a search engine friendly (SEF) URL orother URL that is shorter, more user friendly, and/or more concise thanthe internal URL from which the external URL is based. For example, insome implementations, an external URL based on the internal URL abovecan be

“www.mysite.com/en/sales/shop/category/printers/product/123.”

Other external URLs are also possible, such as longer or shorter ones.Examples herein show that translation between internal and external URLscan be performed according to application-specific rule sets. Forexample, such a translation can begin with either an internal URL or anexternal URL and from it generate a corresponding one, which for clarityis here referred to as a translated URL. That is, the translated URL canbe either an internal URL or an external URL depending on the directionof the translation.

The system 100 here includes a computer system 102, a network 104, andany number of computer devices 106-110. For simplicity, only onecomputer system 102, and a specific number of computer devices 106-110are shown, but it should be understood that the system 100 can includeany number of computer systems 102 and computer devices 106-110.

In general, the computer system 102 can include any computing apparatusthat processes data stored on associated computer readable medium.Examples include, but are not limited to, a blade server, a workstation,a laptop, or a desktop computer. Furthermore, the computer system 102can embody a web server or other types of servers, according toparticular implementations. The computer system 102 includes one or moreresources 112, a document converter 114, an address translation module116, and a rule engine 118. In some implementations, for example, theresources 112 can include electronic documents 122 (e.g., a web page orother document) and applications 124. The computer system 102 canprovide data that corresponds to the one or more resources 112 to any ofthe computer devices 106-110 in response to a request. For example, thecomputer system 102 can be implemented as a web or internet server andcan forward at least a portion of a web page or other document 122,optionally including one or more applications 124 included the in thedocument 122, to the computer devices 106-110 in response to receiving aURL from any of the computer devices 106-110.

The rule engine 118 includes a number of rule sets 120. In someimplementations, each rule set is specified using the extensible markuplanguage (XML) format. A rule set can be assigned to a particularapplication. For example, a sales application is assigned a first ruleset, while a marketing application is assigned a second rule set.Furthermore, one or more rule sets included in the multiple rule sets120 can relate to a particular language. For example, the rule sets 120can include an English-language rule set and a German-language rule setfor the same sales application, wherein the applicable rule set isselected based on a determination of which language is relevant. In someimplementations, rules are assigned to their respective applications bybeing included in a particular file, data structure, or combination ofthese. For example, the English-language rule set assigned to the salesapplication can be included in the “salesrulesen.xml” file, or any otherfile or data structure that includes the English-language rule setassigned to the sales application.

Each rule set includes any number of rules. In some implementations,each rule set can include one or more module rules, page rules, andparameter rules. The one or more page rules can identify a documentidentifier that can be included in a translated URL based on a matchingof the page rule with the portion of the URL. For example, the page rule

“<externalURL>/shop</externalURL><internalURL>:catalogue.xhtml</internalURL>”

includes a document identifier “catalogue.xhtml” for inclusion in thetranslated URL. In some implementations, the page rules are identifiedin the rule set using a page rule declaration. For example, the abovepage rule can be identified as a page rule by being encapsulated by the“<pageRule></pageRule>” declaration. That is,

“<pageRule><externalURL>/shop</externalURL><internalURL>:catalogue.xhtml</internalURL></pageRule>.”

The one or more module rules can specify an application identifiercorresponding to an application that can be included in the translatedURL based on a matching of the module rule with the portion of the URL.For example, the module rule

“<externalURL>/sales</externalURL><internalURL>/com/sales_app</internalURL>”

identifies the sales application to be included in the translated URL.In some implementations, the module rule is identified in the rule setusing a module rule declaration. For example, the above module rule canbe identified as a module rule by being encapsulated by the“<moduleRule></moduleRule>” declaration. That is,

“<moduleRule><externalURL>/sales</externalURL><internalURL>/com/sales_app</internalURL></moduleRule>.”

The one or more parameter rules can specify a parameter to be providedto the application by including the parameter in the translated URL.Furthermore, the identified parameter can be included in the translatedURL based on a matching of the parameter rule with the portion of theURL. For example, the parameter rule

“<externalURL>/product/([0-9]+)</externalURL><internalURL>product_id=$1</internalURL>”

specifies a product parameter that can be provided to the salesapplication and can be included in the translated URL. In someimplementations, the parameter rules can be identified in the rule setusing a parameter rule declaration. For example, the above parameterrule can be identified as a parameter rule by being encapsulated by the“<ruleSet></ruleSet>” declaration. That is,

“<ruleSet><externalURL>/product/([0-9]+)</externalURL><internalURL>product_id=$1</internalURL></ruleSet>.”

Moreover, the rule sets 120 can include a number of framework rules. Insome implementations, the framework rules are common rules that areincluded in at least some of the rule sets. In other implementations,the framework rules are a separate rule set that are applied in additionto the rules of a particular rule set. For example, a language rule

“<externalURL>/[a-z]{2}</externalURL><internalURL>language=$1</internalURL>”

when matched with the external URL portion

“/de/kategotie/drucker/”

would include the internal URL portion

“language=de”

in the translated URL. Furthermore, the rule engine 118 can use thelanguage rules to determine a language-specific rule set to use whenapplying further rules. For example, the rule engine 118 can select theGerman-language rule set for the sales application if the exampleframework rule matched a portion of the URL. In some implementations,the framework rules are included in their own separate file or datastructure. For example, the framework rules can be included in the file“frameworkrules.xml,” or any other file or data structure that includesthe framework rules.

Additionally, in some implementations, each rule in the rule set can beone of a replacement rule, a recursive rule, an exclusive rule, and astop rule. A replacement rule specifies one inclusion of the internalURL portion or the external URL portion in the translated URLcorresponding to a first matching of the replacement rule with theportion of the URL. For example, the rule

“<externalURL>/shop</externalURL><internalURL>:shop.xhtml</internalURL>”

when applied to the URL portion

“/sales/shop/category”

yields the translated URL portion

“/sales:shop.xhtml/category.”

Furthermore, the same rule, when applied to the internal URL portion

“.com/sales_app:shop.xhtml?category_id=pens”

yields the translated URL portion

“.com/sales_app/shop?category_id=pens.”

A recursive rule specifies a number of inclusions of the internal URLportion or the external URL portion in the translated URL equal to anumber of matches of the rule with the URL. For example, the rule

“<externalURL>/(+w)/(+w)</externalURL><internalURL>$1=$2</internalURL>”

when applied to the URL portion

“/name1/value1/name2/value2”

would yield the translated URL

“name1=value1&name2=value2.”

In some implementations, the rule can include a rule control parameter.For example, the replacement rule

“<externalURL>/(+w)/(+w)</externalURL><internalURL>$1=$2</internalURL>”

can additionally include a rule control parameter and can be defined as

“<rule><externalURL>/(+w)/(+w)</externalURL><internalURL>$1=$2</internalURL><ruleControl>N_TIMES</ruleControl></rule>.”An exclusive rule specifies that the internal URL portion or theexternal URL portion is not included in the translated URL correspondingto any matching of the rule with the portion of the URL. For example,the exclusive rule

“<externalURL>(\w+)=(\w+)</externalURL><internalURL>$1=$2</externalURL>”

when applied to the URL portion

“bad_param=value”

would not include anything in the translated URL. As another example,the exclusive rule can be defined using the rule control parameterdescribed above to yield a rule definition of

“<rule><externalURL>(\w+)=(\w+)</externalURL><internalURL>$1=$2</externalURL><ruleControl>N_EXCLUDE</ruleControl></Rule>.”

A stop rule specifies ceasing any further matching after the stop ruleis matched with the portion of the URL. For example, the rule

“<rule><externalURL>\invalid</externalURL><internalURL>:invalid.xhtml</externalURL><ruleControl>STOP</ruleControl></Rule>”

specifies that the system cease matching additional rules if theexternal URL portion “\invalid” or the internal URL portion“:invalid.xhtml” matched a received URL.

In some implementations, the rule engine 118 can translate one or morekeywords provided by a user into regular expressions used in the one ormore rules. For example, the external URL portion

“<externalURL>/$word$/$number$</externalURL>”

can be translated by the rule engine into an equivalent regularexpression

“<externalURL>/(\w+)/[0.9]+</externalURL>.”

As such, users of the computing system 102 need not be familiar withregular expressions, although the computing system 102 allows users todefine rules using regular expressions as well.

In general, the rule engine 118 can perform uni- or bi-directionaltranslation of URLs using any rule in any of the selected rule sets.That is, using the same rule in a selected rule set, the rule engine 118can translate a portion of an internal URL into a portion of an externalURL, and the portion of the external URL into the portion of theinternal URL, according to a matching of the rule and a portion of aURL. For example, the rule

“<externalURL>/shop</externalURL><internalURL>:shop.xhtml</internalURL>”

would match either the URL portion

“/shop”

or

“:shop.xhtml”

and translate the matched URL portion into

“:shop.xhtml”

or

“/shop,”

respectively. Because each rule set is assigned to a specificapplication, some of the rules can identify a different URL portion toinclude in the translated URL for the same received URL portion. Forexample, consider a first rule

“<externalURL>/order</externalURL>:orderprocessing.xhtml<internalURL></internalURL>”

for a sales application and a second rule

“<externalURL>/order</externalURL>:ordertracking.xhtml<internalURL></internalURL>”

for an order status application application. The received URL portion

“/order”

would match both the first and second rules, but because the applicationis determined to be the sales application, as described in more detailbelow, the received URL is translated to

“:orderprocessing.xhtml,”

instead of

“:ordertracking xhtml.”

In some implementations, one or more rules in a rule set includes one ormore rules that specify an external URL portion or an internal URLportion to be included in the translated URL, according to the matchingof the rule with the received URL, but not both. For example, the rule

“<externalURL>/category/(\w+)</externalURL><internalURL>category_id=$1</internalURL>”

specifies an internal URL portion to be included in a translated URL,based on the matching of the external URL portion with the received URL.However, the same rule cannot be used to include an external URL portionin a translated URL, because the internal URL portion of the rule (i.e.,“category_id=$1”) would not match an internal URL portion with areceived URL in a meaningful way. That is, the $1 identifier is anoutput value based on a matching, and not an input value that describeshow to match an internal URL portion with a received URL. In suchimplementations, when the rule engine 118 is initialized, the ruleengine 118 can analyze one or more rules in the one or more rule setsand generate additional rules based on the analyzed rules. For example,the rule

“<externalURL>/category/$1</externalURL><internalURL>category_id=(\w+)<\internalURL>”

can be generated by analyzing the rule

“<externalURL>/category/(\w+)</externalURL><internalURL>category_id=$1</internalURL>.”

That is, the generated rule specifies a rule that can include anexternal URL portion in a translated URL based on a matching of the aninternal URL portion with a received URL.

The computer devices 106-110 can include any or all of a desktopcomputer 106, a laptop computer 108, and a mobile device 110, includinga cell phone, handheld computer or other mobile device. Other computerdevices 106-110 are also possible. The computer devices 106-110 cancommunicate with the computer system 102 using the network 104. Thenetwork 104 is any network that can facilitate communications betweenthe computer system 102 and any of the computer devices 106-110 and thedesktop computers 104. Example networks include local area networks(LANs) and wide area networks (WANs) such as intranets, and TheInternet, respectively. In some implementations, the network 104 can bea collection of one or more networks that communicate with each other toform a larger network. In general, network 104 implements acommunication protocol (e.g., Transmission Control Protocol/InternetProtocol (TCP/IP), User Datagram Protocol (UDP), and other protocols) toexchange data between two or more sources (e.g., the computer system 102and any of the computer devices 106-110).

The document converter 114 can receive a document and translate one ormore of URLs included in the document using the address translationmodule 116. For example, the document converter 114 can parse or useother techniques to identify one or more URLs included in the documentand provide any of the identified URLs to the address translation module116 for translation.

The address translation module 116 can be used to translate from anexternal URL to an internal URL, and from an internal URL to an externalURL. In general, the address translation module 116 selects anappropriate rule set and uses the rule engine 118 to match the rules inthe selected rule set with an untranslated URL. By matching the rules inthe selected rule set, the address translation module 116 identifies oneor more portions to be included in a translated URL. Techniques forselecting the rule set and matching the rules are described in moredetail below. In some implementations, the address translation module116 determines if the untranslated URLs should be translated. Forexample, in some implementations, the address translation module 116 isconfigured with a flag or other Boolean logic that specifies if atranslation should occur from an internal URL representation to anexternal URL representation. In such implementations, if the flag is setto false, the address translation module 116 provides the untranslatedinternal URL to the computer system 102 instead of translating theinternal URL to an external URL. If the flag is set to true, then theaddress translation module 116 translates the internal URL to anexternal URL.

Furthermore, in some implementations, the address translation module 116can determine if portions of the untranslated URL are internal URLportions or external URL portions before attempting to translated froman external URL to an internal URL. That is, if the received URL orportions thereof is already in an internal URL format, the addresstranslation module 116 need not translate those portions into aninternal URL format. In such implementations, the address translationmodule 116 can provide the untranslated URL portions (and any translatedURL portions) to the computer system 102.

To further illustrate the system 100, consider the following example. Auser of any of the computer devices 106-110 can view a document, such asa web page, on that device. In general, the document can be viewed in abrowser application, such as Windows Internet Explore™ developed byMicrosoft Corporation of Redmond, Wash., Mozilla Firefox™, developed bythe Mozilla Corporation of Mountain View, Calif. In someimplementations, the user may want to view a different document in thebrowser application. In general, the user can select any of the otherURLs included in the viewed document to view a different document oraccess an associated resource, such as an embedded application or otherresource. In response to the selection of the URL, any of the computerdevices 106-110 can send the selected URL to the computer system 102using network 104. For example, the user can select the URL

“www.mysite.com/en/sales/shop/category/printers/product/123”

which is received by the computer system 102.

In response, the computer system 102 can translate the external URL toan internal URL using the address translation module 116 and the ruleengine 118. For example, in some implementations, the addresstranslation module determines that the received URL is in an externalURL format. In general, this determination occurs by matching one ormore rules to the received URL to determine if the received URL matchesan external URL portion or an internal URL portion, according to therule sets 120. If the address translation module 116 determines that atranslation should occur, the address translation module 116 cantranslate the external URL above into the internal URL

“www.mysite.com/sales_app:shop.xhtml?language=en&category_id=printers&product_id=123.”

For example, the address translation module 116 can select a rule setassigned the sales application and use the rule engine 118 to apply therules of the selected rule set to the received URL to generate thetranslated URL. Furthermore, the computer system 102 can reference theresource identified by the translated internal URL and provide theresource or a portion thereof to any of the computer devices 106-110.

In some implementations, the computer system 102 can first provide theidentified resource to the document converter 114, which can translateone or more URLs included in the identified resource into external URLsusing the address translation module 116. In such implementations, usersof the computer devices 106-110 receive resources that include at leastsome external URLs instead of the respective internal URLs. The user canuse the external and internal URLs included in the received resource (orportion thereof) to access additional resources managed by the computersystem 102 by selecting particular URL included in the resource.

FIG. 2 shows an example technique 200 that can be used to translate anexternal URL into an internal URL. For convenience, the technique willbe described in reference to FIG. 1 and a system (e.g., computer system102) that performs the technique.

In step 202, the system receives a URL. For example, the computer system102 can receive an external URL from any of the computer devices106-110. In general, the URL refers to a resource managed by a firstapplication of multiple applications in the computer system. Forexample, the external URL

“www.mysite.com/en/sales/shop/category/printers/product/123”

refers to a resource managed by a sales application. In addition, thesystem uses an internal URL for the resource managed by the salesapplication. For example, the system can use an internal URL

“www.mysite.com/sales_app:shop.xhtml?language=en&category_id=printers&product_id=123”

to reference or otherwise access the resource managed by the salesapplication. In some implementations, the computer system can receivethe URL using an application program interface (API) a hypertexttransfer protocol (HTTP) request, or using other mechanisms. In someimplementations, in step 202, the system can determine if the receivedURL should be translated. For example, if the received URL is in aninternal URL format, the system need not translate the received URL.That is, if the received URL or portions thereof matches an internal URLportion of a rule (e.g., <internalURL>language[a-z]{2}</internalURL>,then the system can use the received URL or portions thereof as if thesystem had translated the URL using the steps 204-208 of technique 200.

In step 204, the system selects a first rule set of multiple rule sets.In general, each of the multiple rule sets is assigned to a respectiveone of the multiple applications. For example, a sales application canbe assigned a first rule set, and a marketing application can beassigned a second rule set. The system can determine the rule setassigned to the respective application by matching a portion of theexternal URL with a mapping. For example, the system can use a hash mapto lookup the rule set assigned to the application “/sales” and selectthat assigned rule set based on the value in the hash map.

In step 206, the system matches at least a portion or the URL with arule in the first rule set. For example, the system can match portionsof the external URL

“www.mysite.com/en/sales/shop/category/printers/product/123”

with rules in the selected rule set by using string comparisons or othercomparisons. Matching is described in examples below.

In step 208, the system includes at least the internal URL portion in atranslated URL corresponding to the URL. For example, the system caninclude the internal URL portion

“/com/sales_app”

corresponding to the external URL portion

“/sales”

based on matching a rule in the rule set with that external URL portion.

In step 210, the system forwards at least part of the resource. Forexample, the system can forward at least a part of the resourcecorresponding to the translated URL

“www.mysite.com/sales_app:shop.xhtml?language=en&category_id=printers&product_id=123”

(the translated URL being generated through any number of iterations ofthe matching and inclusion steps 206 and 208, respectively) to any ofthe computing devices 106-110. In some implementations, the systemaccesses the resource and translates one or more internal URLs includedin the resource into external URLs before forwarding the portion of theresource. An example technique for translating internal URLs to externalURLs is described in reference to FIG. 3.

FIG. 3 shows an example technique 300 that can be used to translate aninternal URL into an external URL. For convenience, the technique willbe described in reference to FIG. 1, and a system (e.g., computer system102) that performs the technique.

In step 302, the system accesses a first resource. In general, thesystem accesses the resource in response to a request from a computerdevice. For example, the computer system 102 can access any of theresources 112 in response to receiving a URL from the computer devices106-110. In addition, the first resource can include at least oneinternal URL. In general, the internal URL refers to a second resourcemanaged by one application of multiple applications in the computersystem. For example, the second resource can include the internal URL

“/www.mysite.com/hr_app:applicationform.xhtml?job_title=02022009&user_id=bob&language=en”

corresponding to a second resource 112 managed by the computer system102. In some implementations, in step 302, the system can determine ifthe internal URLs included in the first resource should be translated.For example, the rule engine 118 can be configured with a Boolean flagor other program logic that specifies if internal URLs should betranslated to external URLs using steps 304-308 of technique 300. Thatis, if the internal URLs are not translated, the internal URLs can beincluded in an untranslated format for use in step 310.

In step 304, the system selects a first rule set of multiple rule sets.In general, each of the multiple rule sets is assigned to a respectiveone of the multiple applications. The system can determine the rule setassigned to the respective application by matching a portion of theinternal URL with a mapping. For example, the system can use a hash mapto lookup the rule set assigned to the application

“/com/hr_app”

and select that assigned rule set based on the value in the hash map.

In step 306, the system matches at least a portion or the URL with arule in the first rule set. For example, the system can match portionsof the internal URL

“/com/hr_app:applicationform.xhtml?job_title=02022009&user_id=bob&language=en”

with rules in the selected rule set by using string comparisons or othercomparisons. Matching is described in examples below.

In step 308, the system includes at least the URL portion in atranslated URL corresponding to the internal URL. In step 208, thesystem includes at least the internal URL portion in a translated URLcorresponding to the URL. For example, the system can include theexternal URL portion

“/hr”

corresponding to the internal URL portion

“/com/hr_app”

based on matching a rule in the rule set with that internal URL portion.

In step 310, the system forwards at least part of the resource. Forexample, the system can forward at least a portion of the resourceincluding the translated URL

“/en/user/bob/hr/apply/job/02022009”

(the translated URL being generated through any number of iterations ofthe matching and inclusion steps 306 and 308, respectively) to any ofthe computing devices 106-110.

FIGS. 4A-4C show examples techniques 400, 410, and 420, respectivelythat can be used to apply rules to URLs according to different orders.In general, the address translation module 116 can be configured toapply the rules from the multiple rule sets 120 in a predetermined orderto translate a URL from an internal URL to an external URL and from anexternal URL to an internal URL. For example, in some implementations,the rules in a rule set can specify the next rule to apply according toa matching of the rule and the URL. For all three examples shown inFIGS. 4A-4C, the rules are specified by TABLE 1.

TABLE 1 NAME RULE fw1<externalURL>/)[a-z]{2})</externalURL><internalURL>language=$1</internalURL>fw2<externalURL>/user/(\w+)</externalURL><internalURL>user_id=$1</internalURL>mod1<externalURL>/sales</externalURL><internalURL>/com/sales_app</internalURL>mod2<externalURL>/marketing</externalURL><internalURL>/com.marketing</internalURL>mod3<externalURL>/hr</externalURL><internalURL>/com/hr_app</internalURL>page1“<externalURL>/apply</externalURL>:refundapplication.xhtml<internalURL></internalURL>”page2“<externalURL>/shop</externalURL><internalURL>:catalogue.xhtml</internalURL>”page3“<externalURL>/coupon</externalURL><internalURL>:couponcenter.xhtml</internalURL>”page4“<externalURL>/apply</externalURL><internalURL>:applicationform.xhtml</internalURL>”param1“<externalURL>/category/(\w+)</externalURL><internalURL>:category_id=$1</internalURL>”param2“<externalURL>/product/([0-9]+)</externalURL><internalURL>product_id=$1</internalURL>”param3“<externalURL>/filter/(\w+)</externalURL><internalURL>filter=$1</internalURL>”param4“<externalURL>/code/(\w+)</externalURL><internalURL>coupon_code_id=$1</internalURL>”param5“<externalURL>/job/(\w+)</externalURL><internalURL>job_id=$1</internalURL>”For simplicity, in the example rules provided in TABLE 1, the respectivedeclarations have been omitted. For example, the

“<moduleRule></moduleRule>”

declaration has been omitted from the mod1 rule, mod2 rule, and mod3rule. Furthermore, the mod1, page1, page2, page3, param1, param2,param3, and param4 rules are assigned to the sales application. Inaddition, the mod2 rule is assigned to the marketing application and themod3, page4, and param5 rules are assigned to the hr (e.g., humanresources) application. In each of techniques 400, 410, and 420, therule engine 118 can be initialized in step 401. In some implementations,this can include accessing a configuration file the specifies one ormore configuration parameters for the rule engine 118. For example, theconfiguration file can include one or more parameters that specify anordering of the rules (e.g., the parameters can specify that the ruleengine 118 perform any of the techniques 400, 410, or 420). As anotherexample, the configuration file can include one or more parameters thatspecify the locations of the one or more rule sets (e.g., the file pathfor the rule set “salesrulesen.xml,” any framework rule sets, or otherrule sets). In some implementations (as described in more detail below),the rules can specify an order. That is, the rules can specify which oftechniques 400, 410, and 420 the rule engine 118 uses.

FIG. 4A shows an example technique 400 whereby the address translationmodule applies the framework rules before the module rules, applies themodule rules before page rules, and applies the page rules before theparameter rules. For example, consider the external URL portion

“/en/user/bob/sales/apply/category/printers/product/123.”

First, in step 402 a, the address translation module 116 applies the fw1rule using the rule engine 118 which matches

“/en”

in the example external URL portion. In general the address translationmodule 116 can access the framework rules because the addresstranslation module 116 is configured with a file path, URL, or otherinformation that specifies the location of the framework rules.

Because the fw1 rule matches the external URL portion, the internalURLportion

“language_id=en”

is included in the translated URL. As the address translation module 116continues to match rules with portions of the external URL using therule engine 118, the address translation module 116 identifiesadditional internal URL portions for inclusion in the translated URL.For example, in step 402 b, matching the fw2 rule with the external URLportion

“/user/bob/sales/apply/category/printers/product/123”

identifies an internal URL portion

“user_id=bob”

that can be included in the translated URL.

Once the address translation module 116 has applied the framework rules,the address translation module 116 can attempt to apply the modulerules, according to the example of FIG. 4A. When the address translationmodule 116 attempts to match the module rules with the external URL, itcan use a mapping to lookup the location of the respective module rules.For example, the address translation module 116 can use a hash map tolookup the location of any of the mod1, mod2 and mod3 rules. Using therespective rule sets assigned to the sales, marketing, and hrapplications, the address translation module 116 can identify that thesales application rule set should be used because the external URLportion matches the module rule assigned to the sales application. Thatis, the

“<externalURL>/sales</externalURL><internalURL>/com/sales_app</internalURL>”

rule matches the external URL portion

“/sales/apply/category/printers/product/123.”

Once the address translation module 116 has identified the correctapplication, in step 404 a, 404 b, or 404 c (according to theapplication) the address translation module 116 can select theidentified rule set and match the remaining application specific rulesto the external URL portion using the rule engine 118 to generate thetranslated URL. That is, because the address translation module 116identified the application as the sales application, the addresstranslation module 116 proceeds to step 404 a to apply the sales rule tothe received URL.

In some implementations, the address translation module 116 does notattempt to match rules in a rule set with portions of the received URLthat have already been matched. For example, the address translationmodule 116 can attempt to match, in step 406 a, the external URL portion

“/apply/category/printers/product/123”

with the page1 rule (because the URL portion “/en/user/bob/sales” hasbeen previously matched with other rules). Furthermore, the addresstranslation module 116 can attempt to match, in step 408 a and 408 b,the external URL portion

“/category/printers/product/123”

with the param1 rule, and the external URL portion

“/printers/product/123”

with the param2 rule, respectively, because all other portions of thereceived URL have been matched with other rules. This allows the addresstranslation module 116 to generate a translated URL of

“/com/sales_app:refundapplication.xhtml?&category_id=printers&product_id=123&user_id=bob&language=en”

by matching rules to untranslated portions only.

Other URL portions can also be matched according to a similar process.For example, the external URL

“/en/user/bob/hr/apply/job/02022009”

can be translated into the internal URL portion

“/com/hr_app:applicationform.xhtml?job_title=02022009&user_id=bob&language=en”

by first applying the fw1 rule, then the fw2 rule, then the mod3 rule,then the page 4 rule, and then the param5 rule according to steps 402 a,402 b, 404 c, 406 d, and 408 e, respectively. Notice that in thisexample, the external URL portion

“/apply”

is translated into a different internal URL portion than the exampledescribed using the steps 402 a, 402 b, 406 a, 408 a, and 408 b.

FIG. 4B shows an example technique 410 whereby the address translationmodule applies the module rules before the framework rules, applies theframework rules before page rules, and applies the page rules before theparameter rules. FIG. 4C shows an example technique 420 whereby theaddress translation module applies the module rules before the pagerules, applies the page rules before framework rules, and applies theframework rules before the parameter rules. The computing system 102 canuse the address translation module 116 and the rule engine 118 in asimilar manner as described above to translate an external URL to aninternal URL using either of the orders illustrated in FIG. 4B or FIG.4C.

Regardless of the order by which the address translation module 116 isconfigured to apply the rules, an external URL portion can be translatedinto the same internal URL portion, and an internal URL portion can betranslated into the same internal URL portion. That is, the external URLportion

“/en/user/bob/sales/apply/category/printers/product/123”

can be translated into the internal URL portion

“/com/sales_app:refundapplication.xhtml?&category_id=printers&product_id=123&user_id=bob&language=en”

regardless of whether the address translation module 116 is configuredto apply the rules in an order illustrated by FIG. 4A, FIG. 4B or FIG.4C.

In addition, the address translation module 116 can use the rules inTABLE 1 (or additional rules generated therefrom by the rule engine 118,as described above) to translate the internal URL portion

“/com/sales_app:shop.xhtml?category_id=printers&product_id=123&user_id=bob&language=en”

to the external URL portion

“/en/user/bob/sales/shop/category/printers/product/123”

using any of the orderings illustrated in FIGS. 4A-4C.

In some implementations, the rules of a rule set specify an order toapply the rules. For example, rules can be organized in a tree structureor other organization that specifies that one rule should be appliedbefore another. That is, the rules can be nested in a such a way thespecifies an ordering to apply the rules. In the examples of FIG. 4A, ifthe address translation module 116 applies the page1 rule in step 406 a,the organization of the rules also specifies that the next rule to applyis the param1 rule in step 408 a, and the param2 rule in step 408 b,because the param1 and param2 rules are nested within the page1 rule. Insuch implementations, the rule engine 118 can determine the orderspecified by the rule set during the initialization step 401. In someimplementations, a rule can specify the next rule to apply withouttranslating a portion of the URL. For example, a so-called “empty” rulespecifies the next rule to apply without translating a portion of thereceived URL to an internal URL or external URL. As another example aso-called “key based rule” rule specifies both the next rule to applyand a translation of the received URL to either an internal URL or anexternal URL, according to the matching. Empty rules and key based rulesare described in more detail below.

FIG. 5 shows an example technique 500 that can be used to apply aframework rule, such as a language rule, to a URL. As described above,the rule engine 118 can be initialized in step 401. Again, certain rulescan specify the order of applying subsequent rules. For example, in step502, the rule engine 118 can apply an empty rule 510 that does notspecify a translation to the URL and specifies that the next rule toapply in step 504 is the frw1 rule. As another example, in step 506 a,the empty_en rule 514 specifies that the next rule to apply is eitherthe mod1_en rule or the mod2_en rule based on a matching of the empty_enrule 514 with the received URL. That is, if “sales” is matched with thereceived URL, then the rule mod1_en (e.g., key based rule 518) isapplied by the rule engine 118. Furthermore, if “mkt” is matched withthe received URL, then the rule mod2_en (e.g., key based rule 520) isapplied by the rule engine 118.

In step 504, a key based rule 512 can be applied. That is, the ruleengine 118 can translated a portion of the received URL according to thetranslation rule included in the key based rule 512. For example, thetranslation rule

“<externalURL>/)[a-z]{2})</externalURL><internalURL>language=$1</internalURL>”

can translate an external URL portion into an internal URL portion.Furthermore, depending on a matching of the frw1 translation rule andthe received URL, the address translation module can select alanguage-specific rule set or otherwise select language specific rulesincluded in a previously selected rule set. For example, if the ruleengine 118 matches the translation rule

“<externalURL>/)[a-z]{2})</externalURL><internalURL>language=$1</internalURL>”

with a portion of the received URL, the $1 parameter can be used tospecify a set of language rules to apply. That is, as specified by thekey based rule 512, if the $1 parameter equals “en,” the addresstranslation module 116 can apply the empty_en rule (e.g., empty rule514) in step 506 a using the rule engine 118. In addition, as specifiedby the key based rule 512, if the $1 parameter equals “de,” the addresstranslation module 116 can apply the empty_de rule (e.g., empty rule516) in step 506 b using the rule engine 118.

Languages and other framework-specific URL portions can be included inthe URL in various places, according to different implementations. Forexample, in one implementations, the language can be specified beforethe application (e.g., “http://www.mysite.com/en/sales/home”). Inanother implementations, the language can be specified before the page(e.g., “http://www.mysite.com/sales/en/home”). In other implementations,the language can be specified after the page (e.g.,“http://www.mysite.com/sales/home/en”). Regardless of the particularimplementations, the address translation module 116 and the rule engine118 can identify the language or other framework-specific URL portionsusing the framework rules by matching the framework rules with the URL.

FIG. 6 is a schematic diagram of a generic computer system 600. Thesystem 600 can be used for the operations described in association withany of the computer-implement methods described previously, according toone implementation. The system 600 includes a processor 610, a memory620, a storage device 630, and an input/output device 640. Each of thecomponents 610, 620, 630, and 640 are interconnected using a system bus650. The processor 610 is capable of processing instructions forexecution within the system 600. In one implementation, the processor610 is a single-threaded processor. In another implementation, theprocessor 610 is a multi-threaded processor. The processor 610 iscapable of processing instructions stored in the memory 620 or on thestorage device 630 to display graphical information for a user interfaceon the input/output device 640.

The memory 620 stores information within the system 600. In someimplementations, the memory 620 is a computer-readable medium. Thememory 620 is a volatile memory unit in some implementations and is anon-volatile memory unit in other implementations.

The storage device 630 is capable of providing mass storage for thesystem 600. In one implementation, the storage device 630 is acomputer-readable medium. In various different implementations, thestorage device 630 may be a floppy disk device, a hard disk device, anoptical disk device, or a tape device.

The input/output device 640 provides input/output operations for thesystem 600. In one implementation, the input/output device 640 includesa keyboard and/or pointing device. In another implementation, theinput/output device 640 includes a display unit for displaying graphicaluser interfaces.

The features described can be implemented in digital electroniccircuitry, or in computer hardware, firmware, software, or incombinations of them. The apparatus can be implemented in a computerprogram product tangibly embodied in an information carrier, e.g., in amachine-readable storage device, for execution by a programmableprocessor; and method steps can be performed by a programmable processorexecuting a program of instructions to perform functions of thedescribed implementations by operating on input data and generatingoutput. The described features can be implemented advantageously in oneor more computer programs that are executable on a programmable systemincluding at least one programmable processor coupled to receive dataand instructions from, and to transmit data and instructions to, a datastorage system, at least one input device, and at least one outputdevice. A computer program is a set of instructions that can be used,directly or indirectly, in a computer to perform a certain activity orbring about a certain result. A computer program can be written in anyform of programming language, including compiled or interpretedlanguages, and it can be deployed in any form, including as astand-alone program or as a module, component, subroutine, or other unitsuitable for use in a computing environment.

Suitable processors for the execution of a program of instructionsinclude, by way of example, both general and special purposemicroprocessors, and the sole processor or one of multiple processors ofany kind of computer. Generally, a processor will receive instructionsand data from a read-only memory or a random access memory or both. Theessential elements of a computer are a processor for executinginstructions and one or more memories for storing instructions and data.Generally, a computer will also include, or be operatively coupled tocommunicate with, one or more mass storage devices for storing datafiles; such devices include magnetic disks, such as internal hard disksand removable disks; magneto-optical disks; and optical disks. Storagedevices suitable for tangibly embodying computer program instructionsand data include all forms of non-volatile memory, including by way ofexample semiconductor memory devices, such as EPROM, EEPROM, and flashmemory devices; magnetic disks such as internal hard disks and removabledisks; magneto-optical disks; and CD-ROM and DVD-ROM disks. Theprocessor and the memory can be supplemented by, or incorporated in,ASICs (application-specific integrated circuits).

To provide for interaction with a user, the features can be implementedon a computer having a display device such as a CRT (cathode ray tube)or LCD (liquid crystal display) monitor for displaying information tothe user and a keyboard and a pointing device such as a mouse or atrackball by which the user can provide input to the computer.

The features can be implemented in a computer system that includes aback-end component, such as a data server, or that includes a middlewarecomponent, such as an application server or an Internet server, or thatincludes a front-end component, such as a client computer having agraphical user interface or an Internet browser, or any combination ofthem. The components of the system can be connected by any form ormedium of digital data communication such as a communication network.Examples of communication networks include, e.g., a LAN, a WAN, and thecomputers and networks forming the Internet.

The computer system can include clients and servers. A client and serverare generally remote from each other and typically interact through anetwork, such as the described one. The relationship of client andserver arises by virtue of computer programs running on the respectivecomputers and having a client-server relationship to each other.

A number of implementations have been described. Nevertheless, it willbe understood that various modifications may be made without departingfrom the spirit and scope of this disclosure. Accordingly, otherimplementations are within the scope of the following claims.

1. A computer program product tangibly embodied in a computer-readablestorage medium and comprising instructions that when executed by aprocessor perform a method for translating a URL to an internal URL, themethod comprising: receiving, in a computer system and from a computerdevice, a uniform resource locator (URL), the URL referring to aresource managed by a first application of multiple applications in thecomputer system, for which resource the computer system uses an internalURL; selecting a first rule set of multiple rule sets in the computersystem, each of the multiple rule sets assigned to a respective one ofthe multiple applications, the selection made based on the first ruleset being assigned to the first application; matching at least a portionof the URL with a rule in the first rule set, the rule identifying aninternal URL portion as corresponding to the portion of the URL;including at least the internal URL portion in a translated URLcorresponding to the URL, wherein a second rule set assigned to anotherone of the multiple applications and not selected for the URL identifiesanother internal URL portion as corresponding to the portion of the URL;and forwarding, based on the translated URL matching the internal URL,at least part of the resource to the computing device.
 2. The computerprogram product of claim 1, wherein the method further comprises:determining, after receiving the URL and before selecting the first ruleset, that the URL is not an internal URL.
 3. The computer programproduct of claim 1, wherein each of the multiple rule sets includes atleast one of a replacement rule causing one inclusion of the internalURL portion in the translated URL corresponding to a first matching ofthe replacement rule with the portion of the URL, a recursive rulecausing a number of inclusions of the internal URL portion in thetranslated URL equal to a number of matches of the rule with the URL, anexclusive rule causing the internal URL portion not to be included inthe translated URL corresponding to any matching of the rule with theportion of the URL, and a stop rule ceasing any further matching afterthe stop rule is matched with the portion of the URL.
 4. The computerprogram product of claim 1, wherein at least one framework rule isassigned to each of the multiple rule sets, the framework rule matchinga parameter with the portion of the URL for inclusion in the translatedURL.
 5. The computer program product of claim 4, wherein the frameworkrule is a language rule identifying a language parameter to be includedin the translated URL based on a matching of the language rule with theportion of the URL.
 6. The computer program product of claim 1, whereinat least one of the multiple rule sets includes a page rule identifyinga document identifier to be included in the translated URL based on amatching of the page rule with the portion of the URL.
 7. The computerprogram product of claim 1, wherein at least one of the multiple rulesets includes a module rule identifying an application identifiercorresponding to the first application to be included in the translatedURL based on a matching of the module rule with the portion of the URL.8. The computer program product of claim 1, wherein at least one of themultiple rule sets includes a parameter rule identifying a parameter tobe provided to the first application to be included in the translatedURL based on a matching of the parameter rule with the portion of theURL.
 9. A computer program product tangibly embodied in acomputer-readable storage medium and comprising instructions that whenexecuted by a processor perform a method for translating an internal URLto a URL, the method comprising: accessing, in a computer system and inresponse to a request from a computer device, a first resource thatincludes at least one internal URL, the internal URL referring to asecond resource managed by one application of multiple applications inthe computer system, for which second resource the computer system usesthe internal URL; selecting a first rule set of multiple rule sets inthe computer system, each of the multiple rule sets assigned to arespective one of the multiple applications, the selection made based onthe first rule set being assigned to the first application; matching atleast a portion of the internal URL with a rule in the first rule set,the rule identifying a URL portion as corresponding to the portion ofthe internal URL; including at least the URL portion in the translatedURL, wherein a second rule set assigned to another one of the multipleapplications and not selected for the internal URL identifies anotherURL portion as corresponding to the portion of the internal URL; andforwarding, at least part of the first resource including the translatedURL to the computing device.
 10. The computer program product of claim9, wherein the method further comprises: determining, after accessingthe first resource and before selecting the first rule set, that theinternal URL should be translated to a URL.
 11. The computer programproduct of claim 9, wherein each of the multiple rule sets includes atleast one of a replacement rule causing one inclusion of the URL portionin the translated URL corresponding to a first matching of thereplacement rule with the portion of the internal URL, a recursive rulecausing a number of inclusions of the URL portion in the translated URLequal to a number of matches of the rule with the internal URL, anexclusive rule causing the URL portion not to be included in thetranslated URL corresponding to any matching of the rule with theportion of the internal URL, and a stop rule ceasing any furthermatching after the stop rule is matched with the portion of the internalURL.
 12. The computer program product of claim 9, wherein at least oneframework rule is assigned to each of the multiple rule sets, theframework rule matching a parameter with the portion of the internal URLfor inclusion in the translated URL.
 13. The computer program product ofclaim 11, wherein the framework rule is a language rule identifying alanguage parameter to be included in the translated URL based on amatching of the language rule with the portion of the internal URL. 14.The computer program product of claim 9, wherein at least one of themultiple rule sets includes a page rule identifying a documentidentifier to be included in the translated URL based on a matching ofthe page rule with the portion of the internal URL.
 15. The computerprogram product of claim 9, wherein at least one of the multiple rulesets includes a module rule identifying an application identifiercorresponding to the first application to be included in the translatedURL based on a matching of the module rule with the portion of theinternal URL.
 16. The computer program product of claim 9, wherein atleast one of the multiple rule sets includes a parameter ruleidentifying a parameter to be provided to the first application to beincluded in the translated URL based on a matching of the parameter rulewith the portion of the internal URL.
 17. A system comprising: aprocessor; a communication device for communication between the systemand at least one computer device; and a machine-readable storage deviceincluding instructions that when executed by the processor generate:multiple applications accessible to the computer device using thecommunication device, the multiple applications managing resources thatin the system are identified using an internal URL representation,wherein the computer device uses an external URL representation for theresources; a rule engine including multiple rule sets assigned torespective ones of the multiple applications, each of the rule setsincluding rules that associate portions of external URLs withcorresponding portions of internal URLs for the assigned application;and an address translation module configured to receive an untranslatedURL, select one of the rule sets for the untranslated URL using the ruleengine, generate a translated URL corresponding to the untranslated URLusing the rule set, and process the translated URL in response toreceiving the untranslated URL; wherein at least one of the rule setsincludes a first rule that includes a different translation of one of aninternal URL portion and an external URL portion than a second rule inanother of the rule sets.
 18. The system of claim 17, further includinginstructions that when executed by the processor generate: a documentconverter configured to convert a document from a first representationto a second representation using the address translation module, thefirst representation including one or more untranslated URLs, and thesecond representation including one or more translated URLs.
 19. Thesystem of claim 17, wherein at least one rule set of the multiple rulesets includes at least one rule generated by the rule engine in responseto analyzing one or more rules of the rule set.
 20. The system of claim17, wherein each rule of the multiple rule sets specifies at least oneof a URL translation and a next rule to apply to the untranslated URL.